import config from "@/utils/config.js"

//切换用户角色
const changeRoleType = async (logintype, token) => {
	let url = config.baseUrl + "wx/user/changlogintype";
	let param = {
		logintype: logintype,
		openid: '',
		token: token,
	}
	let res = await config.getData(url, param);
	return res;
}

export default {
	changeRoleType
}